/*
 * @Author: your name
 * @Date: 2019-11-01 10:18:37
 * @LastEditTime: 2019-11-01 15:27:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \koa-example\src\routes\public.js
 */
const router = require('koa-router')();
const { getCookie, getDetailData } = require('../controllers/testSpider');

module.exports = (app) => {
    /**router.post()配置post路由 */
    router.get('/api/public/testSpider',  async (ctx, next)=>{
        let result = await getCookie(ctx.request.body)
        getDetailData();
       
        console.log(end)
        
    })
    
   

    app.use(router.routes()).use(router.allowedMethods());
}